﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Modellayer
{
    [DataContract]
    public class Reservation
    {
        [DataMember]
        public Show show { get; set; }
        [DataMember]
        public Person person { get; set; }
        [DataMember]
        public List<Seat> seats { get; set; }
        [DataMember]
        public int reservationsId { get; set; }

        public Reservation(Show s, Person p, List<Seat> sts, int resId)
        {
            show = s;
            person = p;
            reservationsId = resId;
            seats = new List<Seat>();
            foreach (Seat se in sts)
                seats.Add(se);

        }
        public Reservation()
        {
            seats = new List<Seat>();
        }

    }
}
